<div id="links_<?php echo $node;?>">
<?php
echo '[ ';
echo $ajax->link(
    __('Add item',true),
    array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'minuteform','id'=>$id,'meetingid'=>$meetingid,'node'=>$node),
    array('update'=>'displayform_'.$node,
        //'before'=>"Element.hide('loadingdiv');Element.hide('closebutton')",
        //'loading'=>"Element.show('loadingdiv_$node');Element.hide('formbox_$node');Element.hide('close_button_$node'); ",
        'complete' => "Element.hide('links_$node');Effect.BlindDown('formbox_$node');Element.show('close_button_$node');"
        ),
    null,
    false
    );
echo ' ] ';
/*
echo ' ] [ ';
echo $ajax->link(
    __('Action by',true),
    array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'actionby','id'=>$id,'meetingid'=>$meetingid,'node'=>$node),
    array('update'=>'displayform_'.$node,
        'complete' => "Element.hide('links_$node');Effect.BlindDown('impl_list_$node');Element.show('close_button_$node');"
        ),
    null,
    false
    );
echo' ] ';
*/

if ($node != 'new') {
    echo'[ ';
    echo $ajax->link(
        __('Delete',true),
        array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'delete','id'=>$id,'meetingid'=>$meetingid),
        array('update'=>'minutestable'),
        __('Deleting this data will also delete all related status. Proceed?',true),
        false
        );
    echo' ]';
    echo' [ ';
    echo $ajax->link(
        __('Edit',true),
        array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'decisionedit','id'=>$id,'meetingid'=>$meetingid,'node'=>$node),
        array('update'=>'displayform_'.$node,
			'complete' => "Element.hide('links_$node');Effect.BlindDown('formbox_$node');Element.show('close_button_$node');"),
        null,
        false
        );
    echo' ]';
    echo' [ ';
    echo $ajax->link(
        __('Copy',true),
        array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'copy','id'=>$id),
        array('complete'=>'location.reload()'),
        null
        );
    echo' ]';
    echo' [ ';
    echo $ajax->link(
        __('Cut',true),
        array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'cut',$id,$meetingid),
        array('complete'=>'location.reload()'),
        null
        );
    echo' ]';
    if(!empty($paste)){
        echo' [ ';
        echo $ajax->link(
            __('Paste as Subitem',true),
            array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'pastesub','id'=>$id),
            array('complete'=>'location.reload()'),
            null
        );
        echo' ]';
        echo' [ ';
        echo $ajax->link(
            __('Paste',true),
            array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'paste','id'=>$id),
            array('complete'=>'location.reload()'),
            null
            );
        echo' ]';
    }
}
?>
</div>
